package com.flyan.danmuhunter.bilibili;

import com.flyan.danmuhunter.bilibili.config.Config;
import com.flyan.danmuhunter.bilibili.datafactory.LiveDataFactoryImpl;
import com.flyan.danmuhunter.common.datafactory.LiveDataFactory;

import java.io.IOException;
import java.net.URISyntaxException;

/**
 * @author flyan
 * @version 1.0
 * @date 2022/6/7
 */
public class Demo {

    public static void main(String[] args) {
        /* 房间号 */
//        long roomId = 21296772L;
        long roomId = 24710581L;

        try {
            LiveDataFactory liveDataFactory = new LiveDataFactoryImpl(roomId, Config.HEARTBEAT_INTERVAL);
            liveDataFactory.connect();
        } catch (URISyntaxException | IOException e) {
            e.printStackTrace();
        }


    }

}
